xen.git
19 years ago[XEN] kexec: Remove asm/kexec.h. Move the single inline function into
Ian Campbell [Thu, 8 Feb 2007 11:03:29 +0000 (11:03 +0000)]
[XEN] kexec: Remove asm/kexec.h. Move the single inline function into
arch specific machine_kexec.c with the other arch specific kexec
functions.

IA64 already had a stub in both kexec.h and machine_kexec.c.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] When removing pages, drop shadow refs before complaining about refcount.
Tim Deegan [Thu, 8 Feb 2007 10:44:53 +0000 (10:44 +0000)]
[XEN] When removing pages, drop shadow refs before complaining about refcount.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[blktap] Allow HVM booting from blktap device(s)
wim@xen-wim.site [Thu, 8 Feb 2007 00:53:01 +0000 (16:53 -0800)]
[blktap] Allow HVM booting from blktap device(s)

Signed-off-by: wim colgate <wim@xensource.com>
19 years ago[HVM] Save/restore: don't try to save the MMIO memory-hole at 4GB.
Tim Deegan [Wed, 7 Feb 2007 17:29:52 +0000 (17:29 +0000)]
[HVM] Save/restore: don't try to save the MMIO memory-hole at 4GB.
Also remove two integer arrays that were set to a[i] == i.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEND] Open save/restore files with O_LARGEFILE if possible
Tim Deegan [Wed, 7 Feb 2007 17:29:21 +0000 (17:29 +0000)]
[XEND] Open save/restore files with O_LARGEFILE if possible
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoImprove hotplug script error reporting via xenstore.
kfraser@localhost.localdomain [Wed, 7 Feb 2007 16:22:55 +0000 (16:22 +0000)]
Improve hotplug script error reporting via xenstore.

Use this to detect and report up-front in vif-bridge script whether
the bridge device exists or not.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agoDom0 VNC server should not drop any of teh 8 supported mouse button
kfraser@localhost.localdomain [Wed, 7 Feb 2007 16:20:28 +0000 (16:20 +0000)]
Dom0 VNC server should not drop any of teh 8 supported mouse button
event types.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agopvfb: Split mouse and keyboard into separate devices.
kfraser@localhost.localdomain [Wed, 7 Feb 2007 16:12:40 +0000 (16:12 +0000)]
pvfb: Split mouse and keyboard into separate devices.

This patch creates two separate input devices for keyboard and mouse
events.  The reason for this is to separate them in the linux input
layer and allow them being routed different ways.

Use case:  Configure the X-Server like this to get the mouse
events directly from the linux input layer, which has the major
advantage that absolute coordinates work correctly:

Section "InputDevice"
  Driver       "evdev"
  Identifier   "Mouse"
  Option       "Device" "/dev/input/event<nr>"
EndSection

This makes the keyboard stop working though in case mouse and
keyboard events are coming through the same input device, at least
with older Xorg (6.9) versions.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
Assign fake pci product identifiers down from 0xffff. This may help
clarify that the devices are not actually PCI. Also it reduces
probability of accidental conflict if further real PCI assignments
occur in future (0x0002, 0x0003, ... would be obvious next identifiers
to allocate).

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvm: Add PCI subsystem ID to emulated devices.
kfraser@localhost.localdomain [Wed, 7 Feb 2007 16:08:47 +0000 (16:08 +0000)]
hvm: Add PCI subsystem ID to emulated devices.

This patch adds the PCI Subsystem ID 5853:0001 to the virtual
devices emulated by qemu (ide, nic, vga).

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years ago[XEN] Remove bogus assertion in shadow emulation path
Tim Deegan [Wed, 7 Feb 2007 12:58:07 +0000 (12:58 +0000)]
[XEN] Remove bogus assertion in shadow emulation path
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore: dynamically calculate the size of the save buffer
Tim Deegan [Wed, 7 Feb 2007 12:41:46 +0000 (12:41 +0000)]
[HVM] Save/restore: dynamically calculate the size of the save buffer
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore: move save/restore routines out of intercept.c
Tim Deegan [Wed, 7 Feb 2007 10:21:15 +0000 (10:21 +0000)]
[HVM] Save/restore: move save/restore routines out of intercept.c
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoRevert 13805: losetup -r is not portable
Tim Deegan [Wed, 7 Feb 2007 12:25:18 +0000 (12:25 +0000)]
Revert 13805: losetup -r is not portable
which breaks CD support on Debian Sarge, FC4, probably others.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agolinux: Fix softlockup interaction with noidlehz.
kfraser@localhost.localdomain [Wed, 7 Feb 2007 02:16:56 +0000 (02:16 +0000)]
linux: Fix softlockup interaction with noidlehz.

next_timer_interrupt() must check for when timer ISR is due to wake up
the softlockup thread.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUpdate .hgignore list
Keir Fraser [Wed, 7 Feb 2007 00:51:26 +0000 (00:51 +0000)]
Update .hgignore list

19 years agolinux: Zap /proc/interrupts count when a dynamic IRQ is unbound.
Keir Fraser [Wed, 7 Feb 2007 00:39:48 +0000 (00:39 +0000)]
linux: Zap /proc/interrupts count when a dynamic IRQ is unbound.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux/i386: Improve critical region handling code
kfraser@localhost.localdomain [Tue, 6 Feb 2007 23:36:53 +0000 (23:36 +0000)]
linux/i386: Improve critical region handling code

- use symbolics instead of raw numbers (going to help the 2.6.20 port,
as those numbers change there)
- fold instructions where possible
- move fixup table into .rodata

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agohvm: vcpu reset support for x86 INIT IPI, needed for CPU hotplug.
kfraser@localhost.localdomain [Tue, 6 Feb 2007 23:14:21 +0000 (23:14 +0000)]
hvm: vcpu reset support for x86 INIT IPI, needed for CPU hotplug.
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years agominios: Fix netfront for ia64.
kfraser@localhost.localdomain [Tue, 6 Feb 2007 23:12:59 +0000 (23:12 +0000)]
minios: Fix netfront for ia64.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
19 years agoFix up xentrace record extraction in xentrace_format for 64-bit
kfraser@localhost.localdomain [Tue, 6 Feb 2007 23:10:05 +0000 (23:10 +0000)]
Fix up xentrace record extraction in xentrace_format for 64-bit
architectures.
Signed-off-by: Thomas Friebel <thomas.friebel@amd.com>
19 years ago[TPM] Set tcpa calls in the rombios and other fixes.
kfraser@localhost.localdomain [Tue, 6 Feb 2007 23:01:35 +0000 (23:01 +0000)]
[TPM] Set tcpa calls in the rombios and other fixes.

This patch places some tcpa calls into the rombios that had previously
not applied anymore or were not set.
Force the reads from MMIO memory locations that the compiler otherwise
optimizes away (-O2) if there was an immediate write to the same
memory location before.
Use #define'd constants wherever possible.
Fix all remaining compiler warnings.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[TPM] TIS dm suspend code fix
kfraser@localhost.localdomain [Tue, 6 Feb 2007 22:59:35 +0000 (22:59 +0000)]
[TPM] TIS dm suspend code fix

This fixes a bug in the TPM TIS device model's state suspend code and
adds some casts to variables to avoid compiler warnings.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoFix xm sched-credit when given an invalid domain name.
Ewan Mellor [Tue, 6 Feb 2007 16:05:29 +0000 (16:05 +0000)]
Fix xm sched-credit when given an invalid domain name.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoFix XendLogging to work on Python 2.4.0 and 2.4.1 (the logging library interface
Ewan Mellor [Tue, 6 Feb 2007 15:37:11 +0000 (15:37 +0000)]
Fix XendLogging to work on Python 2.4.0 and 2.4.1 (the logging library interface
changed with 2.4.2, not 2.4.0).

Signed-off-by: Qing He <qing.he@intel.com>
19 years agoPass the -r flag to losetup for read-only devices.
Ewan Mellor [Tue, 6 Feb 2007 15:35:18 +0000 (15:35 +0000)]
Pass the -r flag to losetup for read-only devices.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agoMake sure OptVals.quiet is always present (fixes xm shutdown -w).
Brendan Cully [Wed, 31 Jan 2007 19:05:36 +0000 (11:05 -0800)]
Make sure OptVals.quiet is always present (fixes xm shutdown -w).

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years ago[QEMU] Unmap video RAM before telling the guest to free it.
Tim Deegan [Mon, 5 Feb 2007 16:40:19 +0000 (16:40 +0000)]
[QEMU] Unmap video RAM before telling the guest to free it.
This avoids a lot of "freeing in-use page" errors.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore: tidy up IRQs
Tim Deegan [Mon, 5 Feb 2007 15:08:18 +0000 (15:08 +0000)]
[HVM] Save/restore: tidy up IRQs
 - don't save PV state
 - recalculate IRQ assert counts instead of saving them

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore: misc tidying
Tim Deegan [Mon, 5 Feb 2007 11:38:22 +0000 (11:38 +0000)]
[HVM] Save/restore: misc tidying
 - Don't save PIT's last-load-time or CPU's vmx-assist bits
 - Reorder save as cpu, PICs, irqs, timers
 - Save the correct value in the HPET's counter.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoHide RDTSCP feature flag from PV guests.
kfraser@localhost.localdomain [Fri, 2 Feb 2007 16:07:13 +0000 (16:07 +0000)]
Hide RDTSCP feature flag from PV guests.

Linux 2.6.19 (x86-64) makes use of this feature if available, but Xen
(validly) fails the attempt to write the respective MSR. Hence the
feature must be hidden from PV guests.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agolinux: Allow xenbus_strstate() to be used from modules.
kfraser@localhost.localdomain [Fri, 2 Feb 2007 16:04:11 +0000 (16:04 +0000)]
linux: Allow xenbus_strstate() to be used from modules.

The function is referenced by a number of DPRINTK()-s. Also, properly
const-ify it.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agominios: Fix bug in xenbus implementation.
kfraser@localhost.localdomain [Fri, 2 Feb 2007 15:55:56 +0000 (15:55 +0000)]
minios: Fix bug in xenbus implementation.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix cross-compile: ia64 build on x86.
kfraser@localhost.localdomain [Fri, 2 Feb 2007 15:54:42 +0000 (15:54 +0000)]
Fix cross-compile: ia64 build on x86.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agolinux: compilation fix of linux/drivers/oprofile/oprof.c
kfraser@localhost.localdomain [Fri, 2 Feb 2007 15:52:30 +0000 (15:52 +0000)]
linux: compilation fix of linux/drivers/oprofile/oprof.c
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoNew domain builder arch_setup hook clean up.
kfraser@localhost.localdomain [Fri, 2 Feb 2007 15:50:27 +0000 (15:50 +0000)]
New domain builder arch_setup hook clean up.
 arch_setup_early  -> arch_setup_meminit
 arch_setup_middle -> arch_setup_bootearly
 arch_setup_late   -> arch_setup_bootlate

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agolibxc: Domain builder must align initial virtual mapping to 4MB
kfraser@localhost.localdomain [Fri, 2 Feb 2007 15:41:45 +0000 (15:41 +0000)]
libxc: Domain builder must align initial virtual mapping to 4MB
boundaries.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agominios: Fix ret_from_exception routine. Stack consistency is now preserved.
kfraser@localhost.localdomain [Fri, 2 Feb 2007 15:30:49 +0000 (15:30 +0000)]
minios: Fix ret_from_exception routine. Stack consistency is now preserved.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
19 years agoAdded default for the vcpus_params key.
Ewan Mellor [Fri, 2 Feb 2007 14:32:48 +0000 (14:32 +0000)]
Added default for the vcpus_params key.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded host.dmesg method.
Ewan Mellor [Fri, 2 Feb 2007 10:25:17 +0000 (10:25 +0000)]
Added host.dmesg method.

Also, fixed all of the host methods, which had been broken by the introduction
of the host_metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove VM_power_state value ShuttingDown. This should be indicated with
Ewan Mellor [Fri, 2 Feb 2007 10:07:58 +0000 (10:07 +0000)]
Remove VM_power_state value ShuttingDown.  This should be indicated with
an in-progress task, when known.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove some obsolete constants (XEN_API_DRIVER_TYPE, XEN_API_BOOT_TYPE).
Ewan Mellor [Fri, 2 Feb 2007 10:03:21 +0000 (10:03 +0000)]
Remove some obsolete constants (XEN_API_DRIVER_TYPE, XEN_API_BOOT_TYPE).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoImproved the example to show creation of a VNC console, and the difference
Ewan Mellor [Thu, 1 Feb 2007 19:02:55 +0000 (19:02 +0000)]
Improved the example to show creation of a VNC console, and the difference
between HVM and PV domains.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded support for maps inside structs, so that we can send the HVM boot params
Ewan Mellor [Thu, 1 Feb 2007 19:02:13 +0000 (19:02 +0000)]
Added support for maps inside structs, so that we can send the HVM boot params
and VCPU params.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMake the string->string map and int->float map allocation functions set the
Ewan Mellor [Thu, 1 Feb 2007 19:00:17 +0000 (19:00 +0000)]
Make the string->string map and int->float map allocation functions set the
map size on allocation.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoClean up some cruft.
Ewan Mellor [Thu, 1 Feb 2007 18:45:50 +0000 (18:45 +0000)]
Clean up some cruft.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTreat the empty string as an absent UUID, not an invalid one. Fix to_sxp
Ewan Mellor [Thu, 1 Feb 2007 18:15:36 +0000 (18:15 +0000)]
Treat the empty string as an absent UUID, not an invalid one.  Fix to_sxp
wrt dictionaries.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoReturn the stored vcpus_params if the domain is not running.
Ewan Mellor [Thu, 1 Feb 2007 18:14:40 +0000 (18:14 +0000)]
Return the stored vcpus_params if the domain is not running.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix xen-x86_32 defconfig to includean option needed for PAE builds.
kaf24@firebug.cl.cam.ac.uk [Thu, 1 Feb 2007 17:52:08 +0000 (17:52 +0000)]
Fix xen-x86_32 defconfig to includean option needed for PAE builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agomerge
Ian Campbell [Thu, 1 Feb 2007 16:55:45 +0000 (16:55 +0000)]
merge

19 years agoFix Solaris build - use $(MAKE) not make.
john.levon@sun.com [Thu, 1 Feb 2007 16:41:36 +0000 (08:41 -0800)]
Fix Solaris build - use $(MAKE) not make.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[XEN] Extend the range returned by KEXEC_RANGE_MA_XEN to cover the
Ian Campbell [Thu, 1 Feb 2007 16:07:22 +0000 (16:07 +0000)]
[XEN] Extend the range returned by KEXEC_RANGE_MA_XEN to cover the
heap as well as code+data. This makes kdump work again after
13546:d86a96ca47a3

Also fix sizeof_note to correctly calculate the length of the name
field.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoFix SDL option for HVM domains.
Ewan Mellor [Thu, 1 Feb 2007 15:44:00 +0000 (15:44 +0000)]
Fix SDL option for HVM domains.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix handling of HVM boot.
Ewan Mellor [Thu, 1 Feb 2007 15:32:16 +0000 (15:32 +0000)]
Fix handling of HVM boot.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix merge conflict between new HVM console handling and new HVM boot handling.
Ewan Mellor [Thu, 1 Feb 2007 15:31:34 +0000 (15:31 +0000)]
Fix merge conflict between new HVM console handling and new HVM boot handling.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix HVM save/restore wrt console handling.
Ewan Mellor [Thu, 1 Feb 2007 15:30:22 +0000 (15:30 +0000)]
Fix HVM save/restore wrt console handling.

From Tim Deegan <Tim.Deegan@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge
Tim Deegan [Thu, 1 Feb 2007 15:03:55 +0000 (15:03 +0000)]
Merge

19 years ago[PYGRUB] Invoke pygrub with TERM=vt100
Tim Deegan [Thu, 1 Feb 2007 15:03:37 +0000 (15:03 +0000)]
[PYGRUB] Invoke pygrub with TERM=vt100
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoUse the new xen-python-path to set PYTHONPATH, rather than trying to do it in
Ewan Mellor [Thu, 1 Feb 2007 14:41:58 +0000 (14:41 +0000)]
Use the new xen-python-path to set PYTHONPATH, rather than trying to do it in
XmTestLib.__init__ (and getting it wrong).

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge
Tim Deegan [Thu, 1 Feb 2007 13:15:03 +0000 (13:15 +0000)]
Merge

19 years ago[XEN] Wrap compat XLAT_ macros in "do { } while (0)".
Tim Deegan [Thu, 1 Feb 2007 13:14:43 +0000 (13:14 +0000)]
[XEN] Wrap compat XLAT_ macros in "do { } while (0)".
This unbreaks code like

    if ( !IS_COMPAT(dom) )
        memcpy();
    else
        XLAT_foo();

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoBreak out the Python path interrogation into a separate script. This has the
Ewan Mellor [Thu, 1 Feb 2007 12:48:53 +0000 (12:48 +0000)]
Break out the Python path interrogation into a separate script.  This has the
advantage that the temporary path manipulation cannot affect the main script,
and that it can be shared with other programs, such as xm-test.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoChange VM.HVM_boot to VM.HVM_boot_policy and VM.HVM_boot_params.
Ewan Mellor [Thu, 1 Feb 2007 11:55:31 +0000 (11:55 +0000)]
Change VM.HVM_boot to VM.HVM_boot_policy and VM.HVM_boot_params.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAllocate Xen kexec/kdump elfnote sections of the correct size.
kfraser@localhost.localdomain [Thu, 1 Feb 2007 14:15:37 +0000 (14:15 +0000)]
Allocate Xen kexec/kdump elfnote sections of the correct size.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agosafe_str*() functions check their destination argument is a
kfraser@localhost.localdomain [Thu, 1 Feb 2007 13:44:35 +0000 (13:44 +0000)]
safe_str*() functions check their destination argument is a
character-array type. Fix two bad callers.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoCopy the definition of DOM0_UUID into XenDomain so that we don't need to import
Ewan Mellor [Thu, 1 Feb 2007 11:42:50 +0000 (11:42 +0000)]
Copy the definition of DOM0_UUID into XenDomain so that we don't need to import
large swathes of the server to run the Xen-API tests.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[TOOLS] Remove a debug message which is spamming the logs during live
Ian Campbell [Thu, 1 Feb 2007 10:21:42 +0000 (10:21 +0000)]
[TOOLS] Remove a debug message which is spamming the logs during live
migration.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] netfront: Don't call netif_carrier_off until the device is
Ian Campbell [Thu, 1 Feb 2007 10:20:34 +0000 (10:20 +0000)]
[LINUX] netfront: Don't call netif_carrier_off until the device is
fuly allocated.

netif_carrier_off() causes events to be queued on the device so if we
subsequently abort the allocation (e.g. due to lack of grant entries)
then we crash trying to access the now invalid device.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[HVM][SVM] Updated the SVM V_TPR register on MMIO writes to the VLAPIC TPR
Travis Betak [Wed, 31 Jan 2007 19:37:44 +0000 (19:37 +0000)]
[HVM][SVM] Updated the SVM V_TPR register on MMIO writes to the VLAPIC TPR

The SVM architecture includes a virtual TPR register.  This patch
updates this register on MMIO writes to the HVM Virtual APIC.

VT does not have this register as far as I know so a stub is added in
the VT code.

Signed-off-by: Travis Betak <travis.betak@amd.com>
19 years agoMerge
Tim Deegan [Wed, 31 Jan 2007 18:15:48 +0000 (18:15 +0000)]
Merge

19 years ago[HVM] Save/restore: save HPET registers
Tim Deegan [Wed, 31 Jan 2007 18:15:00 +0000 (18:15 +0000)]
[HVM] Save/restore: save HPET registers
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Fix perfc after 13756:56377f5ce588
Ian Campbell [Wed, 31 Jan 2007 17:58:00 +0000 (17:58 +0000)]
[XEN] Fix perfc after 13756:56377f5ce588

64 bit guest handles can no longer be passed as parameters to
functions. Extract such parameters into a regular guest handle first.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoMerge
Tim Deegan [Wed, 31 Jan 2007 17:22:17 +0000 (17:22 +0000)]
Merge

19 years ago[HVM] Save/restore: clean up the new hypercall interface
Tim Deegan [Wed, 31 Jan 2007 17:22:00 +0000 (17:22 +0000)]
[HVM] Save/restore: clean up the new hypercall interface
Pass a buffer and size through instead of fixed-size structure.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Fix dom/sysctl structure alignement.
Ian Campbell [Wed, 31 Jan 2007 16:54:21 +0000 (16:54 +0000)]
[XEN] Fix dom/sysctl structure alignement.

Versions of gcc up to and including 3.3 appear to ignore
__attribute__((align(x))) when applied to typedefs or to members of
anonymous unions. Workaround this by explicitly aligning each
definition of a 64 bit guest handle.

Tidy up x86_64 compat entry.S a bit.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agomerge
Emmanuel Ackaouy [Wed, 31 Jan 2007 15:25:04 +0000 (15:25 +0000)]
merge

19 years ago[TOOLS] Fix typos which breaks readnotes transparent gunzipping ...
Emmanuel Ackaouy [Wed, 31 Jan 2007 15:23:51 +0000 (15:23 +0000)]
[TOOLS] Fix typos which breaks readnotes transparent gunzipping ...
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years ago[XEND] Fix typos in vfb/vnc detect in image.py
Alastair Tse [Wed, 31 Jan 2007 15:22:33 +0000 (15:22 +0000)]
[XEND] Fix typos in vfb/vnc detect in image.py

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Add VDI.location support and test c prog for HVM test.
Alastair Tse [Wed, 31 Jan 2007 15:08:29 +0000 (15:08 +0000)]
[XENAPI] Add VDI.location support and test c prog for HVM test.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Remove some deprecated fields from the Xen API test script.
Alastair Tse [Wed, 31 Jan 2007 15:06:40 +0000 (15:06 +0000)]
[XENAPI] Remove some deprecated fields from the Xen API test script.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Use VDI.location rather than VDI.image_uri/uri for Xen API
Alastair Tse [Wed, 31 Jan 2007 15:05:58 +0000 (15:05 +0000)]
[XEND] Use VDI.location rather than VDI.image_uri/uri for Xen API

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Make sure other_config is by default an empty string map.
Alastair Tse [Wed, 31 Jan 2007 15:04:06 +0000 (15:04 +0000)]
[XEND] Make sure other_config is by default an empty string map.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Make VBD.bootable in XendConfig kept as int.
Alastair Tse [Wed, 31 Jan 2007 15:03:22 +0000 (15:03 +0000)]
[XEND] Make VBD.bootable in XendConfig kept as int.

This will prevent it from being displayed as 'False' and 'True'
everywhere in the device SXP.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Hide other_config from console and vfb SXP to prevent string
Alastair Tse [Wed, 31 Jan 2007 15:02:20 +0000 (15:02 +0000)]
[XEND] Hide other_config from console and vfb SXP to prevent string
representation of dict to appear in SXP.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix VCPU_params to return string map.
Alastair Tse [Wed, 31 Jan 2007 15:01:09 +0000 (15:01 +0000)]
[XEND] Fix VCPU_params to return string map.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Merge VFB support for PV and HVM guests.
Alastair Tse [Wed, 31 Jan 2007 13:20:36 +0000 (13:20 +0000)]
[XEND] Merge VFB support for PV and HVM guests.

This patch merges the way VFB are represented inside Xend by making
HVM VNC consoles use the VFB as its configuration object.

It preserves the way options are specified through xm but will create
a new VFB device that is used by image.py to put vnc config into
qemu-dm's command line. The parsing is moved into image.py's
parseDeviceModel() rather than in configVNC().

Through the Xen API, you can create a 'console' of protocol 'rfb' and
end up with a VNC console, on both HVM and PV guests. The location of
the connecting port is stored in the location attribute of the console
object. This is updated on each XendDomainInfo.update() if it
changes.

Also fixes missing read of the vnclisten and HVM_boot from the
config when initialised via xm. Makes sure bootable attribute for VBD
is store as an int when making SXP config.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Make python-pam warning only appear if using XenAPI
Alastair Tse [Wed, 31 Jan 2007 12:58:41 +0000 (12:58 +0000)]
[XEND] Make python-pam warning only appear if using XenAPI

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[HVM] Save/restore: save shared-info pfn and re-map it on restore
Tim Deegan [Wed, 31 Jan 2007 12:23:35 +0000 (12:23 +0000)]
[HVM] Save/restore: save shared-info pfn and re-map it on restore
In the short term this allows us to save the same domain more than once.
Longer-term some more careful shared-info management will be needed.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoMerge
Tim Deegan [Wed, 31 Jan 2007 10:44:21 +0000 (10:44 +0000)]
Merge

19 years ago[XEN] Fix build breakage with gcc 4.1.2.
Ian Campbell [Wed, 31 Jan 2007 10:40:38 +0000 (10:40 +0000)]
[XEN] Fix build breakage with gcc 4.1.2.

domain_build.c: In function 'construct_dom' :
domain_build.c:874: warning: pointer targets in passing argument 1 of 'strlcpy' differ in signedness

Unfortunately adding a simple cast to (char *) doesn't work since that
confuses safe_strcpy so revert to using strlcpy directly.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[HVM] Save/restore: save RTC state.
Tim Deegan [Wed, 31 Jan 2007 10:28:47 +0000 (10:28 +0000)]
[HVM] Save/restore: save RTC state.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore: clean up marshalling code
Tim Deegan [Wed, 31 Jan 2007 10:27:10 +0000 (10:27 +0000)]
[HVM] Save/restore: clean up marshalling code
- All entries are now defined as structs and saved/restored
  in self-contained operations.
- Save/restore operations are type-safe, to tie each entry's
  typecode to a particular struct and its length.
- Save/restore handlers are registered once per host instead of
  per domain.
- Detect buffer overrun before it happens and abort.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[TOOLS] Fix foreign header build breakage.
Ian Campbell [Wed, 31 Jan 2007 10:25:12 +0000 (10:25 +0000)]
[TOOLS] Fix foreign header build breakage.

Having both the Xen tree and the tools tree recurse into the foreign
headers directory causes headaches in parallel builds and when
building 32-bit tools + 64 bit Xen in the same tree.

Therefore we cause mk-symlinks to symlink in the foreign headers build
bits and generate a local version of the headers and checker tool.

Only libxc needs to do this since the other tools were actually
picking up the libxc version of the headers anyway so the mk-symlinks
calls can be removed from these components.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Fix XENVER_capabilities hypercall.
Ian Campbell [Wed, 31 Jan 2007 10:11:26 +0000 (10:11 +0000)]
[XEN] Fix XENVER_capabilities hypercall.

Passing an array to a function turns it into a pointer which confuses
safe_strcat.

Also fix 54->64 typo in ia64 tree.

Thanks to Alex Williamson for pointing out the problem.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoAdded VM_metrics class, taking some of the fields from VM. Make VM.static_max
Ewan Mellor [Tue, 30 Jan 2007 18:30:18 +0000 (18:30 +0000)]
Added VM_metrics class, taking some of the fields from VM.  Make VM.static_max
and static_min read-write.  Added VM.VCPUs/{max,at_startup}.  Make
VM.VCPUs/params a string -> string map.

This is the modelling, the C bindings, and the message file -- Xend support to
follow.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM] Save/restore: Reset PIT period correctly
Tim Deegan [Tue, 30 Jan 2007 18:30:27 +0000 (18:30 +0000)]
[HVM] Save/restore: Reset PIT period correctly
This fixes some time-speedup after restore in guests that use the PIT.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agopygrub: fsimage binding must free objects with PyObject_DEL, not PyMem_DEL.
Keir Fraser [Tue, 30 Jan 2007 17:50:39 +0000 (17:50 +0000)]
pygrub: fsimage binding must free objects with PyObject_DEL, not PyMem_DEL.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
19 years agoia64: Use memcpy() to fill ACPI identifier fields.
Keir Fraser [Tue, 30 Jan 2007 17:39:54 +0000 (17:39 +0000)]
ia64: Use memcpy() to fill ACPI identifier fields.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agoFix XendNode when no host state is saved.
Ewan Mellor [Tue, 30 Jan 2007 16:55:51 +0000 (16:55 +0000)]
Fix XendNode when no host state is saved.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix typo, as suggested by Stefan Berger.
Ewan Mellor [Tue, 30 Jan 2007 16:32:50 +0000 (16:32 +0000)]
Fix typo, as suggested by Stefan Berger.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove sprintf() from Xen. Use snprintf() and friends.
Keir Fraser [Tue, 30 Jan 2007 16:27:53 +0000 (16:27 +0000)]
Remove sprintf() from Xen. Use snprintf() and friends.
Signed-off-by: Keir Fraser <keir@xensource.com>